﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3选择器</title>
<style>
	div ~p{ background:red; }
	span +p{ background:blue; }
	#box >li{ border:1px red solid; }
</style>
</head>
<body>
<span>PHP</span>
<p>HTML</p>
<div>CSS</div>
<p>HTML</p>
<p>HTML</p>
<ul id="box">
 	<li>
		<ul>
	 		<li></li>
            <li></li>
 		</ul>
 	</li>
 	<li></li>
</ul>
</body>
</html>
